home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 096 / listsort.arc / LISTSORT.DOC < prev    next >
Text File  |  1985-08-11  |  1KB  |  34 lines

  1. LISTSORT.DOC  Version 1.0
  2.  
  3. This program was designed to sort large (500+ listings) RBBS
  4. directories into alphabetical order for quick reference.
  5.  
  6. The algorithm is a simple bubble sort except that it only sorts
  7. the first 12 characters of each line (the filename) in memory to
  8. allow manipulation of large files.  After the array is in
  9. alphabetical order, every cell of the array is compared to each
  10. line of the source file to find the original line which is then
  11. written to the output file.
  12.  
  13. Unfortunately, with all the disk reads and writes, this program
  14. is quite slow.  I sorted a 1730 file listing which took almost 7
  15. hours!  Reading from and writing to a ramdisk speeds up the
  16. process considerably.  The best time to run it is while you're
  17. asleep.
  18.  
  19. The upper limit for directory size is about 2500 files.  To go
  20. beyond this you would have to change the source code to read
  21. fewer characters into the array.
  22.  
  23. To run the compiled program, type LISTSORT.  You will then be
  24. asked for input and output drives (where necessary) and
  25. filenames.  Be sure to allow approximately as much free file
  26. space as the input file on your output disk.
  27.  
  28. I hope you find this program useful.
  29.  
  30.  
  31.                                John Tevik
  32.                                5120 Oakley
  33.                                Duluth,  MN  55804
  34.